import React, { Component } from 'react';
import styles from './Stastic.less';

import MapBox from './MapBox';

export default class AllDataMap extends Component {
  componentDidMount() {
    new AMap.Map('map', {
      cursor: 'default',
      zoom: 6,
    });
  }

  getMap() {
    return <div id="map" className={styles.mapStyle} />;
  }

  render() {
    return <MapBox content={this.getMap()} />;
  }
}
